import request from '@/utils/request'


export default {

  addVideo(video){
    return request({
      url: `/eduService/video/addVideo`,
      method: 'post',
      data : video
    })
  },
  //删除小节
  deleteVideo(id){
    return request({
      url: `/eduService/video/${id}`,
      method: 'delete',
    })
  },
  //删除小节的视频
  removeVideo(id){
    return request({
      url: `eduVod/video/removeAliyunVideo/${id}`,
      method: 'delete',
    })
  },

  getVideo(id){
    return request({
      url: `/eduService/video/getVideo/${id}`,
      method: 'get',
    })
  },

  updateVideo(video){
    return request({
      url: `/eduService/video/updateVideo`,
      method: 'put',
      data : video
    })
  },
}
